//
//  MenuSixCollectionViewCell.m
//  Products_B
//
//  Created by lanou on 16/5/29.
//  Copyright © 2016年 朋学友. All rights reserved.
//

#import "MenuSixCollectionViewCell.h"

@implementation MenuSixCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.picImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, kWidth/3, kWidth/3)];
        self.iconImageView = [[UIImageView alloc]initWithFrame:CGRectMake(kWidth/3 / 2 - 25, kWidth/3 - 25, 50, 50)];
        self.iconImageView.layer.cornerRadius = 25;
        self.iconImageView.layer.masksToBounds = YES;
        self.nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(kWidth/3 /2- 50, kWidth/3 + 30, 100, 30)];
        self.nameLabel.font = [UIFont systemFontOfSize:14];
//        self.picImageView.backgroundColor = [UIColor redColor];
//        self.iconImageView.backgroundColor = [UIColor blueColor];
//        self.nameLabel.backgroundColor = [UIColor greenColor];
        self.nameLabel.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:_picImageView];
        [self.contentView addSubview:_nameLabel];
        [self.contentView addSubview:_iconImageView];
    }
    return self;
    
}
@end
